package com.wjh.graduation.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author Wu Jiahong
 * @since 2022-02-03
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Budget对象", description = "")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Budget {

	@ApiModelProperty("预算id")
	@TableId(value = "budget_id", type = IdType.AUTO)
	private Integer budgetId;

	@ApiModelProperty("用户id")
	@NotNull
	private Integer userId;

	@ApiModelProperty("用户预算")
	private Double money;


	public static final String BUDGET_ID = "budget_id";
	public static final String USER_ID = "user_id";

	public static final String MONEY = "money";

}
